﻿@model Aga.GestionDeArchivos.Web.Models.Roles.EditModel
@{
    ViewBag.Title = "Editar Rol";
    Layout = "~/Views/Shared/_InternalLayout.cshtml";
}
<div id="content">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="box-style1">
        <tr>
            <td id="box2">
                <h2>
                    Editar Rol</h2>
                @using (Html.BeginForm())
                {
                    @Html.ValidationSummary(true)
            
                    @Html.HiddenFor(model => model.Id)
    
                    <p>
                        @Html.LabelFor(model => model.Name)
                        <br />
                        @Html.EditorFor(model => model.Name)
                        @Html.ValidationMessageFor(model => model.Name)
                        <br />
                        @Html.LabelFor(model => model.Description)
                        <br />
                        @Html.TextAreaFor(model => model.Description)
                        @Html.ValidationMessageFor(model => model.Description)
                    </p>
                    <p class="addNew">@Html.ActionLink("Editar Acciones", "Actions", new { id = Model.Id })</p>
                    <p class="buttons alignleft">
                        @Html.ActionLink("Cancelar", "Index")
                        <input type="submit" value="Guardar Cambios" />
                    </p>
                }
            </td>
        </tr>
    </table>
</div>
